﻿<phone:PhoneApplicationPage
    x:Class="NfcOrchestra.AboutPage"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:phone="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone"
    xmlns:shell="clr-namespace:Microsoft.Phone.Shell;assembly=Microsoft.Phone"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    FontFamily="{StaticResource PhoneFontFamilyNormal}"
    FontSize="{StaticResource PhoneFontSizeNormal}"
    Foreground="{StaticResource PhoneForegroundBrush}"
    SupportedOrientations="Portrait" Orientation="Portrait"
    mc:Ignorable="d"
    shell:SystemTray.IsVisible="True"
    Style="{StaticResource TransitionPageStyle}">

    <!--LayoutRoot is the root grid where all page content is placed-->
    <Grid x:Name="LayoutRoot" Background="Transparent">
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto"/>
            <RowDefinition Height="*"/>
        </Grid.RowDefinitions>

        <!--TitlePanel contains the name of the application and page title-->
        <StackPanel x:Name="TitlePanel" Grid.Row="0" Margin="12,17,0,28">
            <TextBlock Text="{Binding LocalizedResources.ApplicationTitle, Mode=OneWay, Source={StaticResource LocalizedStrings}}" Style="{StaticResource PhoneTextNormalStyle}" Margin="12,0"/>
            <TextBlock Text="{Binding LocalizedResources.AboutPageTitle, Source={StaticResource LocalizedStrings}}" Margin="9,-7,0,0" Style="{StaticResource PhoneTextTitle1Style}"/>
        </StackPanel>

        <ScrollViewer Grid.Row="1" Margin="0,0,0,12">
            <Grid x:Name="ContentPanel" Margin="12,0,12,0" ScrollViewer.VerticalScrollBarVisibility="Auto">
                <Grid.RowDefinitions>
                    <RowDefinition Height="Auto" />
                    <RowDefinition Height="*"/>
                </Grid.RowDefinitions>
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="Auto"/>
                    <ColumnDefinition Width="*"/>
                </Grid.ColumnDefinitions>
                <Image x:Name="ImgAppIcon" HorizontalAlignment="Left" Margin="0" VerticalAlignment="Top" Source="/Assets/Instruments/sax.png" Width="150" Height="150"/>
                <StackPanel Grid.Column="1" Grid.Row="0">
                    <TextBlock x:Name="TextTitle" HorizontalAlignment="Left" TextWrapping="Wrap" Text="{Binding LocalizedResources.ApplicationTitle, Mode=OneWay, Source={StaticResource LocalizedStrings}}" Style="{StaticResource LongListSelectorGroupHeaderStyle}" FontWeight="Bold"/>
                    <TextBlock x:Name="TextVersion" TextWrapping="Wrap" Text="" Margin="13,0"/>
                    <TextBlock TextWrapping="Wrap" Text="{Binding LocalizedResources.AboutDevelopedBy, Mode=OneWay, Source={StaticResource LocalizedStrings}}" Margin="13,0"/>
                </StackPanel>
                <StackPanel Grid.Column="0" Grid.ColumnSpan="2" Margin="0,10,0,0" Grid.Row="1">
                    <!-- Credits -->
                    <TextBlock HorizontalAlignment="Left" Margin="12,15,12,0" TextWrapping="Wrap" Text="{Binding LocalizedResources.AboutCreditsHeader, Mode=OneWay, Source={StaticResource LocalizedStrings}}" VerticalAlignment="Top" Style="{StaticResource PhoneTextTitle2Style}"/>
                    <TextBlock HorizontalAlignment="Left" TextWrapping="Wrap" VerticalAlignment="Top" Text="{Binding LocalizedResources.AboutCreditsText, Mode=OneWay, Source={StaticResource LocalizedStrings}}" Style="{StaticResource PhoneTextNormalStyle}"/>

                    <!-- Support -->
                    <TextBlock HorizontalAlignment="Left" TextWrapping="Wrap" Text="{Binding LocalizedResources.AboutSupportHeader, Mode=OneWay, Source={StaticResource LocalizedStrings}}" VerticalAlignment="Top" Style="{StaticResource PhoneTextTitle2Style}" Margin="12,15,12,0"/>
                    <TextBlock HorizontalAlignment="Left" TextWrapping="Wrap" VerticalAlignment="Top" Text="{Binding LocalizedResources.AboutSupportText, Mode=OneWay, Source={StaticResource LocalizedStrings}}" Style="{StaticResource PhoneTextNormalStyle}"/>
                    <Button x:Name="ContactButton" Content="{Binding LocalizedResources.AboutContactForm, Mode=OneWay, Source={StaticResource LocalizedStrings}}" VerticalAlignment="Top" Margin="0,10,0,0" Click="ContactButton_Click" />
                    <!-- Privacy Policy -->
                    <TextBlock HorizontalAlignment="Left" Margin="12,15,12,0" TextWrapping="Wrap" Text="{Binding LocalizedResources.AboutPrivacyHeader, Mode=OneWay, Source={StaticResource LocalizedStrings}}" VerticalAlignment="Top" Style="{StaticResource PhoneTextTitle2Style}"/>
                    <TextBlock HorizontalAlignment="Left" TextWrapping="Wrap" VerticalAlignment="Top" Text="{Binding LocalizedResources.AboutPrivacyText, Mode=OneWay, Source={StaticResource LocalizedStrings}}" Style="{StaticResource PhoneTextNormalStyle}"/>
                                    </StackPanel>

            </Grid>
        </ScrollViewer>
    </Grid>

</phone:PhoneApplicationPage>